package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.StaffCityInfoDao;
import io.wdb.modules.generator.generator.entity.StaffCityInfoEntity;
import io.wdb.modules.generator.generator.service.StaffCityInfoService;



@Service("staffCityInfoService")
public class StaffCityInfoServiceImpl implements StaffCityInfoService {
	@Autowired
	private StaffCityInfoDao staffCityInfoDao;
	
	@Override
	public StaffCityInfoEntity queryObject(Long id){
		return staffCityInfoDao.queryObject(id);
	}
	
	@Override
	public List<StaffCityInfoEntity> queryList(Map<String, Object> map){
		return staffCityInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return staffCityInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(StaffCityInfoEntity staffCityInfo){
		staffCityInfoDao.save(staffCityInfo);
	}
	
	@Override
	public void update(StaffCityInfoEntity staffCityInfo){
		staffCityInfoDao.update(staffCityInfo);
	}
	
	@Override
	public void delete(Long id){
		staffCityInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		staffCityInfoDao.deleteBatch(ids);
	}
	
}
